<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head>
  <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
  <meta http-equiv="Content-Script-Type" content="text/javascript"/>

  <title>
    File: 
  </title>
  <link rel='stylesheet' href='support/docgen.css' type='text/css'/>
  <link rel='stylesheet' href='support/tags.css' type='text/css'/>
  <script src='support/docgen.js' type='text/javascript' charset='utf-8'></script>
</head>
<body onload="onloadDoc();">

<div id='leftSide'>
  <div id='leftSideInside'>
  <div id='header'>
    <h2 class="button">Documentation</h2>
    <a href='toc.html'><div class="button2">Table of Contents</div></a>

    <a href='tree.html'><div class="button2">Class Inheritance Tree</div></a>

  </div>
  </div>
</div> <!-- leftSide -->

<div class='subprograms'>
  <div class='details'><ol><li id="l1"><pre><span class="keyword">Package</span> <a href="tictactoe-cellule.ads.html#tictactoe-cellule.ads:1:9" title="defined at tictactoe-cellule.ads:1:9">Tictactoe.Cellule</a> <span class="keyword">is</span> </pre></li>
<li id="l2"><pre>   <span class="comment">-- Definition du typage d&apos;une cellule</span> </pre></li>
<li id="l3"><pre>   <span class="keyword">Type</span> <span class="droplink">Cellule<ul><li><a href="tictactoe-cellule.ads.html#tictactoe-cellule.ads:3:9" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-cellule.ads.html#l20" title="To body">To body</a></li></ul></span>(Vide : boolean:= true ) <span class="keyword">is</span> <span class="keyword">private</span>; </pre></li>
<li id="l4"><pre>    <span class="comment">-- Un pointeur sur les cellules</span> </pre></li>
<li id="l5"><pre>   <span class="keyword">Type</span> <a href="tictactoe-cellule.ads.html#tictactoe-cellule.ads:5:9" title="defined at tictactoe-cellule.ads:5:9">Pointeur_Cellule</a> <span class="keyword">is</span> <span class="keyword">access</span> <span class="droplink">Cellule<ul><li><a href="tictactoe-cellule.ads.html#tictactoe-cellule.ads:3:9" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-cellule.ads.html#l3" title="To spec">To spec</a></li><li><a href="src_tictactoe-cellule.ads.html#l20" title="To body">To body</a></li></ul></span>; </pre></li>
<li id="l6"><pre>   <span class="comment">-- Une case vide</span> </pre></li>
<li id="l7"><pre>    <span class="droplink">Cellule_Vide<ul><li><a href="tictactoe-cellule.ads.html#tictactoe-cellule.ads:7:5" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-cellule.ads.html#l28" title="To body">To body</a></li></ul></span> : <span class="keyword">constant</span> <span class="droplink">Cellule<ul><li><a href="tictactoe-cellule.ads.html#tictactoe-cellule.ads:3:9" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-cellule.ads.html#l3" title="To spec">To spec</a></li><li><a href="src_tictactoe-cellule.ads.html#l20" title="To body">To body</a></li></ul></span>; </pre></li>
<li id="l8"><pre>   <span class="comment">-- Procedure permettant de liberer une cellule</span> </pre></li>
<li id="l9"><pre>   <span class="keyword">procedure</span> <span class="droplink">Liberer<ul><li><a href="tictactoe-cellule.ads.html#tictactoe-cellule.ads:9:14" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-cellule.adb.html#l4" title="To body">To body</a></li></ul></span>( <a href="tictactoe-cellule.ads.html#tictactoe-cellule.ads:9:23" title="defined at tictactoe-cellule.ads:9:23">Cell</a> : <span class="keyword">in</span> <span class="keyword">out</span> <span class="droplink">Pointeur_Cellule<ul><li><a href="tictactoe-cellule.ads.html#tictactoe-cellule.ads:5:9" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-cellule.ads.html#l5" title="To spec">To spec</a></li></ul></span>); </pre></li>
<li id="l10"><pre>   <span class="comment">-- Procedure permettant d&apos;inserer un pion dans une cellule</span> </pre></li>
<li id="l11"><pre>   <span class="keyword">procedure</span> <span class="droplink">Tracer<ul><li><a href="tictactoe-cellule.ads.html#tictactoe-cellule.ads:11:14" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-cellule.adb.html#l10" title="To body">To body</a></li></ul></span>( <a href="tictactoe-cellule.ads.html#tictactoe-cellule.ads:11:22" title="defined at tictactoe-cellule.ads:11:22">Cell</a> : <span class="keyword">in</span> <span class="keyword">out</span> <span class="droplink">Pointeur_Cellule<ul><li><a href="tictactoe-cellule.ads.html#tictactoe-cellule.ads:5:9" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-cellule.ads.html#l5" title="To spec">To spec</a></li></ul></span>; <span class="droplink">Pi<ul><li><a href="tictactoe-cellule.ads.html#tictactoe-cellule.ads:11:54" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-cellule.adb.html#l10" title="To body">To body</a></li></ul></span> : <span class="droplink">Pion<ul><li><a href="tictactoe.ads.html#tictactoe.ads:2:9" title="To API doc">To API doc</a></li><li><a href="src_tictactoe.ads.html#l2" title="To spec">To spec</a></li></ul></span>); </pre></li>
<li id="l12"><pre>   <span class="comment">-- Fonction permettant de tester si une cellule est libre</span> </pre></li>
<li id="l13"><pre>   <span class="keyword">function</span> <span class="droplink">EstLibre<ul><li><a href="tictactoe-cellule.ads.html#tictactoe-cellule.ads:13:13" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-cellule.adb.html#l23" title="To body">To body</a></li></ul></span>(<a href="tictactoe-cellule.ads.html#tictactoe-cellule.ads:13:22" title="defined at tictactoe-cellule.ads:13:22">Cell</a> : <span class="droplink">Pointeur_Cellule<ul><li><a href="tictactoe-cellule.ads.html#tictactoe-cellule.ads:5:9" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-cellule.ads.html#l5" title="To spec">To spec</a></li></ul></span>) <span class="keyword">return</span> boolean; </pre></li>
<li id="l14"><pre>   <span class="comment">-- Fonction qui retourne le pion d&apos;une cellulle</span> </pre></li>
<li id="l15"><pre>   <span class="comment">-- Elle leve une exception lorsque c&apos;est une cellule vide</span> </pre></li>
<li id="l16"><pre>   <span class="keyword">function</span> <span class="droplink">Get_Pion<ul><li><a href="tictactoe-cellule.ads.html#tictactoe-cellule.ads:16:13" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-cellule.adb.html#l29" title="To body">To body</a></li></ul></span>(<a href="tictactoe-cellule.ads.html#tictactoe-cellule.ads:16:22" title="defined at tictactoe-cellule.ads:16:22">Cell</a> : <span class="droplink">Pointeur_Cellule<ul><li><a href="tictactoe-cellule.ads.html#tictactoe-cellule.ads:5:9" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-cellule.ads.html#l5" title="To spec">To spec</a></li></ul></span>) <span class="keyword">return</span> <span class="droplink">Pion<ul><li><a href="tictactoe.ads.html#tictactoe.ads:2:9" title="To API doc">To API doc</a></li><li><a href="src_tictactoe.ads.html#l2" title="To spec">To spec</a></li></ul></span>; </pre></li>
<li id="l17"><pre> </pre></li>
<li id="l18"><pre><span class="keyword">private</span> </pre></li>
<li id="l19"><pre> </pre></li>
<li id="l20"><pre>   <span class="keyword">type</span> <span class="droplink">Cellule<ul><li><a href="tictactoe-cellule.ads.html#tictactoe-cellule.ads:3:9" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-cellule.ads.html#l3" title="To spec">To spec</a></li></ul></span>(Vide : boolean := true) <span class="keyword">is</span>  <span class="keyword">record</span> </pre></li>
<li id="l21"><pre>      <span class="keyword">case</span> Vide <span class="keyword">is</span> </pre></li>
<li id="l22"><pre>         <span class="keyword">when</span> true =&gt; </pre></li>
<li id="l23"><pre>            <span class="keyword">null</span>; </pre></li>
<li id="l24"><pre>         <span class="keyword">when</span> false =&gt; </pre></li>
<li id="l25"><pre>            valeur : <span class="droplink">Pion<ul><li><a href="tictactoe.ads.html#tictactoe.ads:2:9" title="To API doc">To API doc</a></li><li><a href="src_tictactoe.ads.html#l2" title="To spec">To spec</a></li></ul></span>; </pre></li>
<li id="l26"><pre>      <span class="keyword">end</span> <span class="keyword">case</span>; </pre></li>
<li id="l27"><pre>   <span class="keyword">end</span> <span class="keyword">record</span>; </pre></li>
<li id="l28"><pre>    <span class="droplink">Cellule_Vide<ul><li><a href="tictactoe-cellule.ads.html#tictactoe-cellule.ads:7:5" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-cellule.ads.html#l7" title="To spec">To spec</a></li></ul></span> : <span class="keyword">constant</span> <span class="droplink">Cellule<ul><li><a href="tictactoe-cellule.ads.html#tictactoe-cellule.ads:3:9" title="To API doc">To API doc</a></li><li><a href="src_tictactoe-cellule.ads.html#l3" title="To spec">To spec</a></li><li><a href="src_tictactoe-cellule.ads.html#l20" title="To body">To body</a></li></ul></span> := (Vide =&gt; true); </pre></li>
<li id="l29"><pre><span class="keyword">end</span>; </pre></li>
</ol></div>
</div>

</body>
</html>